#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include "run.h"


int main(){
    char myArguments[255];
    char *myArgumentPointer = myArguments;
    while(1){        
        printf("GLaDOS$");        
        fgets(myArguments, 255, stdin);
        char exitString[7] = "exit\n";
        if (strcmp(myArguments, exitString)==0)
            exit(1);
        else
            runCommand(myArgumentPointer);
        strncpy(myArguments,"\0",255);
        myArgumentPointer = myArguments;
    }
    return 1;
}
